package com.zss.dubbo.controller;


import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zss.dubbo.service.IScanService;

@Controller
@RequestMapping("/dubbo")
public class DubboController {

	private Logger logger = LoggerFactory.getLogger(DubboController.class);
	@Resource
	private IScanService scanService;
	
	@RequestMapping(value="/forword", method=RequestMethod.GET)
	public String forword(ModelMap model){
		scanService.scan();
		logger.info("success=============");
		return "route";
	}
	
	
	@RequestMapping(value="getRoute",method=RequestMethod.GET)
	public String getRoute(){
//		return routeApi.getRouteList("aaa", "bbb");
		return "route";
	}
}
